package cn.edu.pzhu.javaweb.service;

import cn.edu.pzhu.javaweb.pojo.Result;
import cn.edu.pzhu.javaweb.pojo.User;
import cn.edu.pzhu.javaweb.pojo.Userinfo;

public interface UserService {
    //1.注册
    Result<String> regist(User user, Userinfo userinfo);
    //2.登录
    Result<String> login(User user);
    //3.查看个人信息
    Result<Userinfo> showUserInfo(String username);
    //4.修改个人信息
    Result<String> changeUserInfo(Userinfo userinfo);
    //5.修改密码
    Result<String> changePassword(String username, String oldpwd, String newpwd);
    Result<String> changePassword(User user);
    //6.注销账户
    Result<String> destroyUser(String username);
}
